package message;

import model.RoomInfo;
import socket.ChessClient;

import java.util.List;

public class ServerRoomListMessage extends BaseMessage {
    private List<RoomInfo> roomList;

    public ServerRoomListMessage(List<RoomInfo> roomList) {
        this.roomList = roomList;
    }

    @Override
    public void sendToServer() {

    }

    @Override
    public void selfExecute() {
        ChessClient.getInstance().getRoomList().showRoomListPanel(roomList);
    }
}
